home *** CD-ROM | disk | FTP | other *** search
- @echo off
- if x%1 == x goto usage
- if %1 == help goto help
- if not x%2 == x goto have2
- %0 %1 \PB
-
- :add
- %0 %1: %2 NOWAIT
-
- :have2
- if x%3 == xNOWAIT goto nowait
- if not x%3 == x goto usage
-
- echo Please wait . . .
- :nowait
-
- if %1 == a goto add
- if %1 == A goto add
- if %1 == b goto add
- if %1 == B goto add
- if %1 == c goto add
- if %1 == C goto add
- if %1 == d goto add
- if %1 == D goto add
- if %1 == e goto add
- if %1 == E goto add
- if %1 == f goto add
- if %1 == F goto add
- if %1 == g goto add
- if %1 == G goto add
- if %1 == h goto add
- if %1 == H goto add
- if %1 == i goto add
- if %1 == I goto add
- if %1 == j goto add
- if %1 == J goto add
- if %1 == k goto add
- if %1 == K goto add
- if %1 == l goto add
- if %1 == L goto add
- if %1 == m goto add
- if %1 == M goto add
- if %1 == n goto add
- if %1 == N goto add
- if %1 == o goto add
- if %1 == O goto add
- if %1 == p goto add
- if %1 == P goto add
- if %1 == q goto add
- if %1 == Q goto add
- if %1 == r goto add
- if %1 == R goto add
- if %1 == s goto add
- if %1 == S goto add
- if %1 == t goto add
- if %1 == T goto add
- if %1 == u goto add
- if %1 == U goto add
- if %1 == v goto add
- if %1 == V goto add
- if %1 == w goto add
- if %1 == W goto add
- if %1 == x goto add
- if %1 == X goto add
- if %1 == y goto add
- if %1 == Y goto add
- if %1 == z goto add
- if %1 == Z goto add
-
- if %0 == a:install.bat goto ona
- if %0 == A:install.bat goto ona
- if %0 == b:install.bat goto onb
- if %0 == B:install.bat goto onb
- goto doit
-
- :ona
- a:
- goto gotd
-
- :onb
- C]:
- goto gotd
-
- :doit
- if exist pb.pgm goto gotd
- echo
- echo You must cd to this install program's location before running
- echo install. Do this in two steps. First, move to the correct drive.
- echo For instance, if the install program is on a floppy in drive A:,
- echo type:
- echo
- echo A:
- echo
- echo and press Enter. The second step is to move to the correct
- echo directory within the drive. For instance, if the install program
- echo is in the root directory of the floppy, type:
- echo
- echo cd \
- echo
- echo and press Enter. Once you've moved to the correct drive and
- echo directory, run the install program once again by typing:
- echo
- echo install
- echo
- goto end
-
- :gotd
- md %1%2 > nul
- copy *.* %1%2 > nul
- if not exist %1%2\pb.pgm goto error
-
- md %1%2\tutorial > nul
- copy tutorial\*.* %1%2\tutorial > nul
- if not exist %1%2\tutorial\tutorial.ovr goto error
-
- %1
- cd %2
-
- echo
- echo
- echo
- echo
- echo The installation is finished. The Desktop has been installed in the
- echo directory %1%2. To run the Desktop, type:
- echo
- echo pb
- echo
- echo and press Enter.
- echo
- goto end
-
- :error
- echo
- echo Couldn't install the Desktop. Read the instructions below to make
- echo sure you're using this install program correctly.
-
- :usage
- echo
- echo To use this install program, type:
- echo
- echo install C
- echo
- echo and press Enter. The Desktop will be installed in the \PB
- echo directory on drive C. For instance, in the case of the above
- echo example, the Desktop would be installed to C:\PB. If you want to
- echo install to a different drive, just use its drive letter in place
- echo of the C in the above command.
- echo
- echo
- echo To install to a directory with a name other than \PB, type:
- echo
- echo install help
- echo
- echo and press Enter. This will display more instructions.
- echo
- goto end
-
- :help
- echo
- echo To install the Desktop to a directory of your choice, type:
- echo
- echo install C \DESKTOP
- echo
- echo and press Enter. The Desktop will be installed in the \DESKTOP
- echo directory on drive C. For instance, in the case of the above
- echo example, the Desktop would be installed to C:\DESKTOP. Substitute
- echo the drive and directory you want for C and \DESKTOP when typing
- echo the command.
- echo
- echo Be sure to leave a space between the drive and the directory name.
- echo
- :end
-